package com.qqtech.qquan.coupon.model;

import java.math.BigDecimal;
import java.sql.Timestamp;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.frame.model.BaseDomain;

@SuppressWarnings("serial")
public class CouponBase extends BaseDomain {
	// columns START
	
	/** 是否允许圈币兑换 */
	private java.lang.Integer isQBuy;
	
	/** 特价 */
	private BigDecimal price;

	/** 名称 */
	private java.lang.String name;

	/** 描述 */
	private java.lang.String remark;

	/** 发行量 */
	private java.lang.Integer quantity;

	/** 满多少钱 */
	private BigDecimal fullPrice;

	/** 减多少钱 */
	private BigDecimal minusPrice;
	/** 折扣 */
	private BigDecimal discount;
	/** 状态CouponBaseStatusEnum:1-启用;2-停止; */
	private java.lang.Integer status;
	/** 状态CouponBaseTypeEnum:1-普通优惠卷;2-商城某件产品;3-服务类目;4-商城类目; */
	private java.lang.Integer bizzType;
	/** 业务ID（如商城产品id） */
	private java.lang.Integer bizzId;
	/** 商城、服务类目id */
	private java.lang.Integer categoryId;
	/**
	 * 普通过期时间
	 */
	private Timestamp expireAt;
	
	/**
	 * 适用社区id,空表示用于全部社区
	 */
	private java.lang.Integer communityId;
	// columns END
	public CouponBase() {
	}

	public CouponBase(java.lang.Integer id) {
		this.id = id;
	}

	public java.lang.Integer getBizzId() {
		return this.bizzId;
	}

	public java.lang.Integer getBizzType() {
		return this.bizzType;
	}

	public java.lang.Integer getCategoryId() {
		return categoryId;
	}

	public BigDecimal getDiscount() {
		return this.discount;
	}

	public Timestamp getExpireAt() {
		return expireAt;
	}

	public BigDecimal getFullPrice() {
		return this.fullPrice;
	}

	public java.lang.Integer getIsQBuy() {
		return isQBuy;
	}

	public BigDecimal getMinusPrice() {
		return this.minusPrice;
	}

	public java.lang.String getName() {
		return this.name;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public java.lang.Integer getQuantity() {
		return this.quantity;
	}

	public java.lang.String getRemark() {
		return this.remark;
	}

	public java.lang.Integer getStatus() {
		return this.status;
	}

	public void setBizzId(java.lang.Integer bizzId) {
		this.bizzId = bizzId;
	}

	public void setBizzType(java.lang.Integer bizzType) {
		this.bizzType = bizzType;
	}

	public void setCategoryId(java.lang.Integer categoryId) {
		this.categoryId = categoryId;
	}

	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}

	public void setExpireAt(Timestamp expireAt) {
		this.expireAt = expireAt;
	}

	public void setFullPrice(BigDecimal fullPrice) {
		this.fullPrice = fullPrice;
	}

	public void setIsQBuy(java.lang.Integer isQBuy) {
		this.isQBuy = isQBuy;
	}

	public void setMinusPrice(BigDecimal minusPrice) {
		this.minusPrice = minusPrice;
	}

	public void setName(java.lang.String name) {
		this.name = name;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public void setQuantity(java.lang.Integer quantity) {
		this.quantity = quantity;
	}

	public void setRemark(java.lang.String remark) {
		this.remark = remark;
	}

	public void setStatus(java.lang.Integer status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
	}

	public java.lang.Integer getCommunityId() {
		return communityId;
	}

	public void setCommunityId(java.lang.Integer communityId) {
		this.communityId = communityId;
	}
}
